﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace IntelligentEscalator.Models
{
    public class RepairWorkOrderInfo
    {
        public int id { get; set; }
        public int elevatorId { get; set; }//设备id
        public string workorderNO { get; set; }//工单编号
        private int workordetype = -1;
        public int workordeType//工单性质0=一般性，1=紧急
        {
            get { return workordetype; }
            set { workordetype = value; }
        }
        public int isTiring { get; set; }//是否困人
        public string creator { get; set; }//工单创建者
        public string reportPerson { get; set; }//报修人
        public string reportPhone { get; set; }//报修电话
        public string reportTime { get; set; }//报修时间
        public string repair_information { get; set; }//维修结果
        public string faultType { get; set; }//故障类型
        public string faultCause { get; set; }//故障描述
        private int StateID = -1;
        public int workorderStateID//工单状态
        {
            get { return StateID; }
            set { StateID = value; }
        }
        public string receiver { get; set; }//维保员
        public int receiverID { get; set; }//维保员id
        public string receiverPhone { get; set; }//维保员电话
        public string receiverNo { get; set; }//维保员工号
        public string preparationTime { get; set; }//制单时间
        public string receiveTime { get; set; }//接收时间
        public string arriveTime { get; set; }//到达时间
        public string completeTime { get; set; }//完成时间
        public string acceptanceTime { get; set; }//验收时间
        public string maintenanceTime { get; set; }//维修时间
        public string elevatorNO { get; set; }//设备编号
        public string elevatorName { get; set; }//设备名称
        public string workorderStateName { get; set; }
        public string areaName { get; set; }
        public int isDelete { get; set; }
        public int Recordhead { get; set; }//记录头
        public int Recordtail { get; set; }//记录尾
        public string startTime { get; set; }
        public string endTime { get; set; }
        private int attribute = -1;
        public int workattribute
        {
            get { return attribute; }
            set { attribute = value; }
        }
        public string workattributeName { get; set; }
        public List<Rtime> rogressedtime { get; set; }
        public string remark { get; set; }
        public string repairperson { get; set; }
        public string faultContent { get; set; }
        public string reportSource { get; set; }//报修来源
        public int faultContentid { get; set; }//故障原因id
        public int isRead { get; set; }
        public string groupNO { get; set; }
        public string refuseReason { get; set; }
        public string contractNo { get; set; }
        public string saleNo { get; set; }
        public int outofservice { get; set; }
        public int mainAreaId { get; set; }//父区域id
        public string mainAreaName { get; set; }//父区域名称
        public int areaId { get; set; }//区域id
        public string faultReason { get; set; }//故障原因
        public string faultGuidance { get; set; }//故障指引
        public string maintenancePoint { get; set; }//故障维修要点
        public string ids { get; set; }
        public int type { get; set; }//0=工单1=历史
    }
}
